package org.apache.cxf.interceptor;

import org.apache.cxf.binding.xml.XMLMessage;
import org.apache.cxf.message.MessageContentsList;
import org.apache.cxf.phase.AbstractPhaseInterceptor;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.apache.cxf.phase.Phase;

import org.apache.cxf.helpers.IOUtils;
import org.apache.cxf.interceptor.Fault;
import org.apache.cxf.io.CachedOutputStream;
import org.apache.cxf.message.Message;
import org.apache.cxf.phase.AbstractPhaseInterceptor;
import org.apache.cxf.phase.Phase;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.io.ByteArrayInputStream;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.StandardCharsets;

public class ValidateInterceptor extends AbstractPhaseInterceptor<XMLMessage> {
    private Logger log = LoggerFactory.getLogger(getClass());

    public ValidateInterceptor(String phase) {
        super(phase);
    }

    public ValidateInterceptor() {
        super(Phase.PRE_INVOKE);
    }

    @Override
    public void handleMessage(XMLMessage arg0) throws Fault {
        MessageContentsList lstContent = MessageContentsList.getContentsList(arg0);
        try {

        } catch (Exception e) {
            e.printStackTrace();
        }

    }

}
